package com.ruoyi.system.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysBoatPollute;
import com.ruoyi.system.mapper.SysBoatPolluteMapper;
import com.ruoyi.system.service.SysBoatPolluteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author syj
* @description 针对表【sys_boat_pollute】的数据库操作Service实现
* @createDate 2022-09-02 17:10:00
*/
@Service
public class SysBoatPolluteServiceImpl extends ServiceImpl<SysBoatPolluteMapper, SysBoatPollute> implements SysBoatPolluteService {

    @Autowired
    SysBoatPolluteMapper sysBoatPolluteMapper;

    @Override
    public AjaxResult getPollute() {
        int total = sysBoatPolluteMapper.getTotal();
        return AjaxResult.success(total);
    }
}




